/*
  api
  https://developers.weixin.qq.com/miniprogram/dev/api/ui-navigate.html#wxnavigatetoobject

  url 页面路由
  method 跳转方式
  isLogin 是否需要登录
  event 后退时需要触发的事件
*/

const router = {
  //申请
  invitation: {
    url: '/pages/invitation/invitation',
    method: 'navigateTo',
  },
  // 个人中心
  my: {
    url: '/pages/my/index',
    method: 'switchTab',
    isLogin: true
  },
  // 店铺
  store: {
    url: '/pages/store/index',
    method: 'switchTab',
  },
  // 商品详情
  detail: { //商城商品详情页©
    url: '/pages/detail/index',
    method: 'navigateTo'
  },
  // 确认订单页
  confirmorder: {
    url: '/pages/confirmorder/index',
    method: 'navigateTo',
    isLogin: true
  },
  //注册
  register: {
    url: '/pages/register/index',
    method: 'navigateTo',
  },
  //订单列表
  orderList: {
    url: '/pages/orders/list',
    method: 'navigateTo',
    isLogin: true,
  },
  //订单详情
  orderDetail: {
    url: '/pages/orders/detail',
    method: 'navigateTo',
    isLogin: true
  },
  //物流
  logistics: {
    url: '/pages/logistics/index',
    method: 'navigateTo',
    isLogin: true
  },
  //抽奖
  luck: {
    url: '/pages/luck/luck',
    method: 'navigateTo',
    isLogin: true
  },
  //贝壳明细
  linprice: {
    url: '/pages/my/linprice',
    method: 'navigateTo',
    isLogin: true
  },

  //我的优惠券
  mycoupon: {
    url: '/pages/my/coupon',
    method: 'navigateTo',
    isLogin: true
  },
  //红包领取记录
  collarred: {
    url: '/pages/task/collarred',
    method: 'navigateTo',
    isLogin: true
  },
  //新人领取大礼包
  newman: {
    url: '/pages/newman/index',
    method: 'navigateTo',
    isLogin: true
  },
  //我的赏金
  myreward: {
    url: '/pages/reward/my',
    method: 'navigateTo',
    isLogin: true
  },
  //我的红包
  myredpacket: {
    url: '/pages/redpacket/my',
    method: 'navigateTo',
    isLogin: true
  },
  
  //选赏金领红包
  myredinfo: {
    url: '/pages/my/redinfo',
    method: 'navigateTo',
    isLogin: true
  },
  web: {
    url: '/pages/web/web',
    method: 'navigateTo',
  },
  //支付成功热销爆款
  payhot:{
    url:'/pages/confirmorder/pay',
    method:'navigateTo'
  },
  //订单售后详情
  afterdetail:{
    url: '/pages/aftersale/adetail',
    method: 'navigateTo'
  },
  //售后服务类型页面
   servicetype: {
    url: '/pages/aftersale/servicetype',
    method: 'navigateTo'
  },
  //填写快递单号
  expressnum:{
    url: '/pages/aftersale/expressnum',
    method: 'navigateTo'
  },
  //去申请售后页面
  applyforsale: {
    url: '/pages/aftersale/applyforsale',
    method: 'navigateTo'
  },
  //去瓜分贝壳页面
  shellForm: {
    url: '/pages/shellForm/shellForm',
    method: 'navigateTo'
  },
  //瓜分页面规则
  rule:{
    url: '/pages/shellForm/rule',
    method: 'navigateTo'
  },
  //去签到页面
  conchsignin: {
    url: '/pages/conch/conch',
    method: 'navigateTo'
  },
  //步数兑换贝壳
  sports:{
    url: '/pages/sports/sports',
    method: 'navigateTo',
    isLogin: true
  },
  //任务中心
  dailytasks: {
    url: '/pages/dailytasks/dailytasks',
    method: 'navigateTo',
  },
  //全部商品
  choose: {
    url: '/pages/choose/choose',
    method: 'switchTab',
  },
  //贝壳专区
  shellfish: {
    url: '/pages/conch/shellfish',
    method: 'navigateTo',
  },
  //兑换券码
  exchange:{
    url:'/pages/confirmorder/exchange',
    method:'navigateTo'
  },
  // 拼团免费拿
  freecharege: {
    url: '/pages/collage/freecharege',
    method: 'navigateTo'
  },
  //好友助力
  helpfree:{
    url: '/pages/collage/helpfree',
    method: 'navigateTo'
  },
  //免费拿商品详情页
  free:{
    url: '/pages/detail/free',
    method: 'navigateTo'
  },
  //免费拿提交订单
  subaddress:{
    url: '/pages/confirmorder/subaddress',
    method: 'navigateTo'
  },
  //群接龙页面
  groupdragon:{
    url: '/pages/group/group',
    method: 'navigateTo'
  },
  // 我的群接龙
  mygroup: {
    url: '/pages/group/mygroup',
    method: 'navigateTo'
  },
  //接龙商品详情页
  dragon:{
    url:'/pages/detail/dragon',
    method:'navigateTo'
  },
  //接龙下单
  jielong: {
    url: '/pages/confirmorder/jielong',
    method: 'navigateTo',
    isLogin: true
  },
  // 活动专区tab
  specialhome: {
    url: '/pages/specialarea/specialhome',
    method: 'navigateTo',
  },
  // 活动专区下属列表
  specialtype: {
    url: '/pages/specialarea/specialtype',
    method: 'navigateTo',
  },
  //召唤好友
  myfirend:{
    url: '/pages/dailytasks/myfriend',
    method: 'navigateTo',
  },
  //关注公众号页面
  publicnumber: {
    url: '/pages/dailytasks/publicnumber',
    method: 'navigateTo',
  },
  //砍价商品列表
  cutpricelist:{
    url: '/pages/cutprice/pricelist',
    method: 'navigateTo',
  },
  //砍价详情
  bargaindetail: {
    url: '/pages/cutprice/bargaindetail',
    method: 'navigateTo',
  },
  //砍价订单商品详情
  details:{
    url: '/pages/detail/detail',
    method: 'navigateTo',
  },
  //搜索页面
  search: {
    url: '/pages/choose/search',
    method: 'navigateTo',
  },
  //提现 确认页
  putforward: {
    url: '/pages/reward/putforward',
    method: 'navigateTo',
  },
  //提现 获取验证码
  putphone: {
    url: '/pages/reward/putphone',
    method: 'navigateTo',
  },
  //可提现金额明细
  muchdetail: {
    url: '/pages/my/muchdetail',
    method: 'navigateTo',
  },
  //邀请签到升级店主
  shopkeeper: {
    url: '/pages/shopkeeper/shopkeeper',
    method: 'navigateTo',
  },
  //评价页面
  evaluate: {
    url: '/pages/orders/evaluate',
    method: 'navigateTo',
  }, 
  // 海外直邮
  overseas: {
    url: '/pages/choose/overseas',
    method: 'switchTab',
  }











  // 搜索页面
  // searchList   : {
  //   url       : 'pages/search/index',
  //   method : 'navigateTo'
  // },
  // 我的优惠券页面
  // myCoupon     : {
  //   url       : 'pages/coupon/index',
  //   isLogin : true,
  //   method : 'navigateTo'
  // },
};

module.exports = router;